package com.appwoo.txtws.service;

import android.content.Context;
import android.util.Xml;
import com.appwoo.android.exception.NotFoundNetWorkException;
import com.appwoo.android.exception.TimeOutException;
import com.appwoo.android.util.PullIO;
import com.appwoo.txtws.bean.ImprotentInfoBean;
import com.appwoo.txtws.component.Logger;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

public class ShowImprotentInfoService
{
  public List<ImprotentInfoBean> getQTopWrite(String paramString1, String paramString2, String paramString3, Context paramContext)
    throws IOException, XmlPullParserException, TimeOutException, NotFoundNetWorkException
  {
    ImprotentInfoBean localImprotentInfoBean = null;
    MsgService localMsgService = new MsgService();
    Object localObject1 = null;
    String str1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><MSG><HEAD><SNDR>" + paramString1 + "</SNDR> " + "<TYPE>RQCurLimit</TYPE></HEAD>" + "<BODY><UserID>" + paramString3 + "</UserID><Type>" + paramString2 + "</Type></BODY></MSG>";
    Logger.i("TXTW", "msg==" + str1);
    String str2 = localMsgService.sendMessage(paramString1, str1, paramContext);
    Object localObject2 = Xml.newPullParser();
    int i;
    try
    {
      XmlPullParser localXmlPullParser = PullIO.getPullByString(str2);
      localObject2 = localXmlPullParser;
      i = ((XmlPullParser)localObject2).getEventType();
      if (i == 1)
        return localObject1;
    }
    catch (NullPointerException localNullPointerException)
    {
      while (true)
        localNullPointerException.printStackTrace();
      switch (i)
      {
      case 1:
      default:
      case 0:
      case 2:
      case 3:
      }
    }
    while (true)
    {
      i = ((XmlPullParser)localObject2).next();
      break;
      localObject1 = new ArrayList();
      continue;
      if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("List"))
        localImprotentInfoBean = new ImprotentInfoBean();
      if (localImprotentInfoBean != null)
        if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("Type"))
        {
          localImprotentInfoBean.setType(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("Name"))
        {
          localImprotentInfoBean.setUrl(((XmlPullParser)localObject2).nextText());
        }
        else if (((XmlPullParser)localObject2).getName().equalsIgnoreCase("Num"))
        {
          localImprotentInfoBean.setNum(((XmlPullParser)localObject2).nextText());
          continue;
          if ((((XmlPullParser)localObject2).getName().equalsIgnoreCase("list")) && (localObject1 != null) && (localImprotentInfoBean != null))
          {
            ((List)localObject1).add(localImprotentInfoBean);
            localImprotentInfoBean = null;
          }
        }
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.service.ShowImprotentInfoService
 * JD-Core Version:    0.6.2
 */